{eq name="Request.action" value="edit"}
{Data:article id="request" var="vo"}
{else /}
	<?php
		$vo=[
			'module'	=>	input('module'),
			'pid'		=>	input('pid'),
			'date'		=>	date('Y-m-d'),
			'status'	=>	1,
		];
	?>
{/eq}
<form action="__APP__/{$Request.controller}/update.html" class="child-form page-list-form layui-form layui-form-pane" method="post">
	<div class="layui-form-item">
		<label class="layui-form-label">模块</label>
		<div class="layui-input-inline input-6x">
			<select name="module" readonly>
				<option>--请选择--</option>
				<option value="Loan" {eq name="vo['module']" value="Loan"}selected{/eq}>贷款</option>
				<option value="Scar" {eq name="vo['module']" value="SCar"}selected{/eq}>二手车</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">关联ID</label>
		<div class="layui-input-inline input-6x">
			<input type="text" class="layui-input" name="pid" value="{$vo.pid}" autocomplete="off" readonly />
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">日期</label>
		<div class="layui-input-inline input-6x">
			<input type="text" class="layui-input" name="date" value="{$vo.date|date='Y-m-d'}" autocomplete="off" placeholder="请选择日期" id="date"/>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">金额</label>
		<div class="layui-input-inline input-6x">
			<input type="text" class="layui-input" name="money" value="{$vo.money}" autocomplete="off" placeholder="请填写金额"/>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">状态</label>
		<div class="layui-input-inline input-6x">
			<input type="checkbox" name="status" value="1" lay-skin="switch" lay-text="启用|禁用" {eq name="vo.status" value="1"}checked{/eq} >
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-inline input-6x">
			<button type="submit" class="layui-btn" lay-submit="" lay-filter="formSubmit">提交</button>
		</div>
	</div>
	<input type="hidden" name="id" value="{$vo.id}" />
</form>
<script>
layui.use('laydate', function(){
    var laydate = layui.laydate;    
    //执行一个laydate实例
    laydate.render({
        elem: '#date' //指定元素
    });
});
</script>